﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPageSEG.Master" AutoEventWireup="true" CodeBehind="Interfaces.aspx.cs" Inherits="SEG.Interfaces" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:97%;" cellpadding = "2" cellspacing= "2" align ="center" >
        <tr>
            <td align="left">
                <asp:Label ID="lblInterfaces" runat="server" 
                    style="font-size: large; font-family: Arial, Helvetica, sans-serif; font-weight: 700; color: #000000" 
                    Text="Interfaces" ForeColor="Black"></asp:Label>
                <hr
                        class="linhahorizontal" style="width: 750px" />
            </td>
        </tr>
        <tr>
            <td class="erro">
                <asp:Label ID="lblErro" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="barra">
                <asp:Button ID="btnNovo" runat="server" Text="Novo" Width="80px" 
                    onclick="btnNovo_Click" style="font-weight: 700" />
            </td>
        </tr>
        <tr>
            <td class="grid_titulo">
&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="Aplicação:" ForeColor="Black"></asp:Label>
                <asp:DropDownList ID="ddlAplicacoes" runat="server" DataSourceID="dsAplicações" 
                    DataTextField="DSC_APLIC" DataValueField="COD_APLIC" Height="22px" 
                    AutoPostBack="True" onselectedindexchanged="ddlAplicacoes_SelectedIndexChanged" 
                    Width="229px">
                </asp:DropDownList>
&nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvInterfaces" runat="server" AutoGenerateColumns="False" 
                    CssClass="grid" onrowdatabound="gvInterfaces_RowDataBound" 
                    EmptyDataText="Nenhuma Interface Encontrada" RowStyle-ForeColor="Black" HeaderStyle-ForeColor="Black">
                    <RowStyle CssClass="row" />
                    <EmptyDataRowStyle CssClass="emptyrow" />
                    <Columns>
                        <asp:BoundField HeaderText="Descrição" DataField="DSC_INT" HeaderStyle-ForeColor="Black">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Aplicação" DataField="DSC_APLIC" HeaderStyle-ForeColor="Black">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Excluir" HeaderStyle-ForeColor="Black">
                            <ItemTemplate>
                                <asp:HyperLink ID="hplExcluir" runat="server" 
                                    ImageUrl="~/Imagens/botoes/Delete.png">HyperLink</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="COD_APLIC" HeaderText="COD_APLIC" Visible="False" />
                        <asp:BoundField DataField="COD_INT" HeaderText="COD_INT" Visible="False" />
                    </Columns>
                    <FooterStyle CssClass="footer" />
                    <PagerStyle CssClass="page" />
                    <HeaderStyle CssClass="header" />
                    <AlternatingRowStyle CssClass="row_alter" />
                </asp:GridView>
                <asp:Label ID="lblPagina" runat="server" 
                    style="color: #000000; font-size: x-small; font-family: Arial, Helvetica, sans-serif"></asp:Label>
                <span style="color: black">/<asp:Label ID="lblTotalPag" runat="server" 
                    style="color: #000000; font-size: x-small; font-family: Arial, Helvetica, sans-serif"></asp:Label>
                </span>
                <br />
                <asp:Button ID="btnPrimeiro" runat="server" Text="Primeiro" 
                    onclick="btnPrimeiro_Click" style="font-weight: 700" Width="80px" />
                <asp:Button ID="btnAnterior" runat="server" Text="Anterior" 
                    onclick="btnAnterior_Click" style="font-weight: 700" Width="80px" />
                <asp:Button ID="btnProximo" runat="server" Text="Proximo" 
                    onclick="btnProximo_Click" style="font-weight: 700" Width="80px" />
                <asp:Button ID="btnUltimo" runat="server" Text="Ultimo" 
                    onclick="btnUltimo_Click" style="font-weight: 700" Width="80px" />
                <br />
                <asp:SqlDataSource ID="dsAplicações" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
                    SelectCommand="select COD_APLIC, DSC_APLIC from seg_aplicacoes order by 2"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
